﻿<UserControl x:Class="MediaAssistant.Controls.TopPanel.TopPanelView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:DALConstants="clr-namespace:MediaAssistant.DAL.Constants;assembly=MediaAssistant.DAL"
             xmlns:Constants="clr-namespace:MediaAssistant.Constants"
             xmlns:cal="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation"
             Height="110" MinWidth="800" Background="Transparent">
  <DockPanel Margin="10" LastChildFill="False">
    <Menu DockPanel.Dock="Top" Background="Transparent">
      <MenuItem Header="File">
        <MenuItem Header="Add Files" Command="{Binding AddFilesToLibraryCommand}"/>
        <MenuItem Header="Add Folder" Command="{Binding AddFolderToLibraryCommand}"/>
        <Separator />
        <MenuItem Header="Add Movie" Command="{Binding AddMovieToLibraryCommand}"/>
        <Separator />
        <MenuItem Header="Exit" Command="{Binding ExitCommand}"/>
      </MenuItem>
      <MenuItem Header="View">
        <MenuItem Header="Movies"
                  IsChecked="{Binding LibraryManager.CurrentViewType, Converter={StaticResource ParameterEqualityConverter}, 
                                          ConverterParameter={x:Static DALConstants:LibraryItemType.MovieType}}"
                  Command="{Binding LibraryManager.ChangeViewCommand}"
                  CommandParameter="{x:Static DALConstants:LibraryItemType.MovieType}"/>
        <MenuItem Header="Music"
                  IsChecked="{Binding LibraryManager.CurrentViewType, Converter={StaticResource ParameterEqualityConverter}, 
                                          ConverterParameter={x:Static DALConstants:LibraryItemType.MusicType}}"
                  Command="{Binding LibraryManager.ChangeViewCommand}"
                  CommandParameter="{x:Static DALConstants:LibraryItemType.MusicType}"/>
      </MenuItem>
      <MenuItem Header="Tools">
        <MenuItem Header="Preferance" Command="{Binding ChangePreferanceCommand}"/>
        <MenuItem Header="Change Profile" Command="{Binding ChangeProfileCommand}"/>
        <MenuItem Header="Export Movies" Command="{Binding ExportMovieIdCommand}"/>
        <MenuItem Header="Night Vision" Command="{Binding NightVisionCommand}" IsChecked="{Binding IsNightVision}"/>
      </MenuItem>
      <MenuItem Header="Help">
        <MenuItem Header="Send Feedback" Command="{Binding SendFeedbackCommand}"/>
        <MenuItem Header="About Media Assistant" Command="{Binding AboutCommand}"/>
      </MenuItem>
    </Menu>
    <ContentControl Margin="7,0,0,0" DockPanel.Dock="Left" Content="{StaticResource MediaAssistantLogo}"/>
    <Border DockPanel.Dock="Right" >
      <Grid>
         <Border Margin="5,0,50,0" CornerRadius="20" BorderThickness="1" Padding="2" BorderBrush="#B2B2B2" Background="WhiteSmoke" Height="32">
            <ContentControl cal:RegionManager.RegionName="{x:Static Constants:MediaAssistantRegionNames.SearchRegion}" ></ContentControl>
        </Border>
      </Grid>
    </Border>
  </DockPanel>
</UserControl>
